package com.zuowei.ycy.user.adapter;

import android.content.Context;

import com.and.yzy.frame.adapter.CommonAdapter;
import com.and.yzy.frame.adapter.ViewHolder;
import com.zuowei.ycy.R;
import com.zuowei.ycy.user.domain.AddressInfo;

import java.util.List;

/**
 * Created by Administrator on 2016/4/27.
 */
public class AddressAdapter extends CommonAdapter<AddressInfo> {

    public AddressAdapter(Context context, List<AddressInfo> mList, int itemLayoutId) {
        super(context, mList, itemLayoutId);
    }

    @Override
    public void convert(ViewHolder holder, AddressInfo item, int positon) {
        holder.setTextViewText(R.id.tv_name,"收货人："+item.getConsignee());
        holder.setTextViewText(R.id.tv_phone,item.getMobile());
        holder.setTextViewText(R.id.tv_address,"收货地址："+item.getAddress());
    }
}
